package com.aaa.bbb.mymaintain.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Data
public class IssueEmployeeAddForm {
    public interface Base{
    }
    public interface FindbyId {
    }
    public interface Update extends Base {
    }

    @NotNull(groups = {Base.class})
    @Length(min = 1, max = 20, groups = {Base.class})
    private String username;

    @NotNull(groups = {Base.class})
    @Length(min = 1,  max=65535,groups = {Base.class})
    private String detail;

    @NotNull(groups = {Base.class})
    @Length(min = 1, max=65535,groups = {Base.class})
    private String picture;

    @NotNull(groups = {Base.class})
    @Length(min = 1, max=65535,groups = {Base.class})
    private String explanation;

//    @Pattern(regexp = "(\\d{1,4}-\\d{2}-\\d{2})?", groups = {Base.class})
//    private String stubrithdaystr;
    private LocalDate date;
}
